﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001433 RID: 5171
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainVisitorInfo : IMessage<TrainVisitorInfo>, IMessage, IEquatable<TrainVisitorInfo>, IDeepCloneable<TrainVisitorInfo>, IBufferMessage
	{
		// Token: 0x1700412D RID: 16685
		// (get) Token: 0x0600E782 RID: 59266 RVA: 0x0026AD73 File Offset: 0x00268F73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainVisitorInfo> Parser
		{
			get
			{
				return TrainVisitorInfo._parser;
			}
		}

		// Token: 0x1700412E RID: 16686
		// (get) Token: 0x0600E783 RID: 59267 RVA: 0x0026AD7A File Offset: 0x00268F7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainVisitorInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700412F RID: 16687
		// (get) Token: 0x0600E784 RID: 59268 RVA: 0x0026AD8C File Offset: 0x00268F8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainVisitorInfo.Descriptor;
			}
		}

		// Token: 0x0600E785 RID: 59269 RVA: 0x0026AD93 File Offset: 0x00268F93
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainVisitorInfo()
		{
		}

		// Token: 0x0600E786 RID: 59270 RVA: 0x0026ADA8 File Offset: 0x00268FA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainVisitorInfo(TrainVisitorInfo other) : this()
		{
			this.missionId_ = other.missionId_;
			this.visitorId_ = other.visitorId_;
			this.bKHCLMJKOIP_ = other.bKHCLMJKOIP_.Clone();
			this.toastFinishMainMission_ = other.toastFinishMainMission_;
			this.status_ = other.status_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E787 RID: 59271 RVA: 0x0026AE0D File Offset: 0x0026900D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainVisitorInfo Clone()
		{
			return new TrainVisitorInfo(this);
		}

		// Token: 0x17004130 RID: 16688
		// (get) Token: 0x0600E788 RID: 59272 RVA: 0x0026AE15 File Offset: 0x00269015
		// (set) Token: 0x0600E789 RID: 59273 RVA: 0x0026AE1D File Offset: 0x0026901D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MissionId
		{
			get
			{
				return this.missionId_;
			}
			set
			{
				this.missionId_ = value;
			}
		}

		// Token: 0x17004131 RID: 16689
		// (get) Token: 0x0600E78A RID: 59274 RVA: 0x0026AE26 File Offset: 0x00269026
		// (set) Token: 0x0600E78B RID: 59275 RVA: 0x0026AE2E File Offset: 0x0026902E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint VisitorId
		{
			get
			{
				return this.visitorId_;
			}
			set
			{
				this.visitorId_ = value;
			}
		}

		// Token: 0x17004132 RID: 16690
		// (get) Token: 0x0600E78C RID: 59276 RVA: 0x0026AE37 File Offset: 0x00269037
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BKHCLMJKOIP
		{
			get
			{
				return this.bKHCLMJKOIP_;
			}
		}

		// Token: 0x17004133 RID: 16691
		// (get) Token: 0x0600E78D RID: 59277 RVA: 0x0026AE3F File Offset: 0x0026903F
		// (set) Token: 0x0600E78E RID: 59278 RVA: 0x0026AE47 File Offset: 0x00269047
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool ToastFinishMainMission
		{
			get
			{
				return this.toastFinishMainMission_;
			}
			set
			{
				this.toastFinishMainMission_ = value;
			}
		}

		// Token: 0x17004134 RID: 16692
		// (get) Token: 0x0600E78F RID: 59279 RVA: 0x0026AE50 File Offset: 0x00269050
		// (set) Token: 0x0600E790 RID: 59280 RVA: 0x0026AE58 File Offset: 0x00269058
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainVisitorStatus Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x0600E791 RID: 59281 RVA: 0x0026AE61 File Offset: 0x00269061
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainVisitorInfo);
		}

		// Token: 0x0600E792 RID: 59282 RVA: 0x0026AE70 File Offset: 0x00269070
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainVisitorInfo other)
		{
			return other != null && (other == this || (this.MissionId == other.MissionId && this.VisitorId == other.VisitorId && this.bKHCLMJKOIP_.Equals(other.bKHCLMJKOIP_) && this.ToastFinishMainMission == other.ToastFinishMainMission && this.Status == other.Status && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E793 RID: 59283 RVA: 0x0026AEF0 File Offset: 0x002690F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MissionId != 0U)
			{
				num ^= this.MissionId.GetHashCode();
			}
			if (this.VisitorId != 0U)
			{
				num ^= this.VisitorId.GetHashCode();
			}
			num ^= this.bKHCLMJKOIP_.GetHashCode();
			if (this.ToastFinishMainMission)
			{
				num ^= this.ToastFinishMainMission.GetHashCode();
			}
			if (this.Status != TrainVisitorStatus.None)
			{
				num ^= this.Status.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E794 RID: 59284 RVA: 0x0026AF8E File Offset: 0x0026918E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E795 RID: 59285 RVA: 0x0026AF96 File Offset: 0x00269196
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E796 RID: 59286 RVA: 0x0026AFA0 File Offset: 0x002691A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MissionId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.MissionId);
			}
			if (this.Status != TrainVisitorStatus.None)
			{
				output.WriteRawTag(16);
				output.WriteEnum((int)this.Status);
			}
			if (this.ToastFinishMainMission)
			{
				output.WriteRawTag(72);
				output.WriteBool(this.ToastFinishMainMission);
			}
			if (this.VisitorId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.VisitorId);
			}
			this.bKHCLMJKOIP_.WriteTo(ref output, TrainVisitorInfo._repeated_bKHCLMJKOIP_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E797 RID: 59287 RVA: 0x0026B044 File Offset: 0x00269244
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MissionId);
			}
			if (this.VisitorId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.VisitorId);
			}
			num += this.bKHCLMJKOIP_.CalculateSize(TrainVisitorInfo._repeated_bKHCLMJKOIP_codec);
			if (this.ToastFinishMainMission)
			{
				num += 2;
			}
			if (this.Status != TrainVisitorStatus.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Status);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E798 RID: 59288 RVA: 0x0026B0D4 File Offset: 0x002692D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainVisitorInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MissionId != 0U)
			{
				this.MissionId = other.MissionId;
			}
			if (other.VisitorId != 0U)
			{
				this.VisitorId = other.VisitorId;
			}
			this.bKHCLMJKOIP_.Add(other.bKHCLMJKOIP_);
			if (other.ToastFinishMainMission)
			{
				this.ToastFinishMainMission = other.ToastFinishMainMission;
			}
			if (other.Status != TrainVisitorStatus.None)
			{
				this.Status = other.Status;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E799 RID: 59289 RVA: 0x0026B15D File Offset: 0x0026935D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E79A RID: 59290 RVA: 0x0026B168 File Offset: 0x00269368
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 8U)
					{
						this.MissionId = input.ReadUInt32();
						continue;
					}
					if (num == 16U)
					{
						this.Status = (TrainVisitorStatus)input.ReadEnum();
						continue;
					}
					if (num == 72U)
					{
						this.ToastFinishMainMission = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.VisitorId = input.ReadUInt32();
						continue;
					}
					if (num == 120U || num == 122U)
					{
						this.bKHCLMJKOIP_.AddEntriesFrom(ref input, TrainVisitorInfo._repeated_bKHCLMJKOIP_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005B86 RID: 23430
		private static readonly MessageParser<TrainVisitorInfo> _parser = new MessageParser<TrainVisitorInfo>(() => new TrainVisitorInfo());

		// Token: 0x04005B87 RID: 23431
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005B88 RID: 23432
		public const int MissionIdFieldNumber = 1;

		// Token: 0x04005B89 RID: 23433
		private uint missionId_;

		// Token: 0x04005B8A RID: 23434
		public const int VisitorIdFieldNumber = 13;

		// Token: 0x04005B8B RID: 23435
		private uint visitorId_;

		// Token: 0x04005B8C RID: 23436
		public const int BKHCLMJKOIPFieldNumber = 15;

		// Token: 0x04005B8D RID: 23437
		private static readonly FieldCodec<uint> _repeated_bKHCLMJKOIP_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x04005B8E RID: 23438
		private readonly RepeatedField<uint> bKHCLMJKOIP_ = new RepeatedField<uint>();

		// Token: 0x04005B8F RID: 23439
		public const int ToastFinishMainMissionFieldNumber = 9;

		// Token: 0x04005B90 RID: 23440
		private bool toastFinishMainMission_;

		// Token: 0x04005B91 RID: 23441
		public const int StatusFieldNumber = 2;

		// Token: 0x04005B92 RID: 23442
		private TrainVisitorStatus status_;
	}
}
